package com.feidian.helper.ui.view;

import com.feidian.helper.R;

import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.view.Gravity;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.View.OnClickListener;
import android.widget.Button;
public class MyDialog extends Dialog {
        private static Button btn1,btn2;
        
		private static int default_width = 160; // 默认宽度

		private static int default_height = 120;// 默认高度

		public MyDialog(Context context, View layout, int style) {

			this(context, default_width, default_height, layout, style);

		}

		public MyDialog(Context context, int width, int height, View layout,
				int style) {

			super(context, style);

			setContentView(layout);

			Window window = getWindow();

			WindowManager.LayoutParams params = window.getAttributes();

			params.gravity = Gravity.CENTER;

			window.setAttributes(params);
			
			
        	

		}

	}


